package com.xtpt.disaster.bean;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@Data
public class ParametersTask {

    @ApiModelProperty(value = "任务id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long taskId;

    @ApiModelProperty(value = "任务名称")
    private String taskName;

    @ApiModelProperty(value = "任务描述")
    private String taskDesc;
    /**
     *8、原任务名称 用于修改
     */
    @ApiModelProperty(value = "原任务名称 用于修改")
    private String oldJobName;

    @ApiModelProperty(value = "任务的执行类型，IMMEDIATELY(\"立刻执行任务\",0),\n" +
            "START_AT(\"在指定时间执行一次\",1),\n" +
            "CALENDAR_INTERVAL(\"日、周、月、年周期性执行\",2),\n" +
            "CORN(\"根据Corn表达式执行\",3);\n")
    private Integer taskExectype;

    @ApiModelProperty(value = "DAY(\"每日周期执行\",0),\n" +
            "WEEK(\"每周周期执行\",1),\n" +
            "MONTH(\"每月周期执行\",2),\n" +
            "YEAR(\"每年周期执行\",3);")
    private Integer taskUnit;

    @ApiModelProperty(value = "周期单位数")
    private Integer taskUnitCount;

    @ApiModelProperty(value = "定时或周期任务的开始时间")
    private Date taskStarttime;

    @ApiModelProperty(value = "周期任务的结束时间")
    private Date taskEndtime;
}
